package com.study.design.pattern.pattern.structural.composite;

/**
 * @Author: gongsl
 * @Date: 2025-03-16 15:05
 * @description: 文件类
 */
public class File extends FileSystemNode {

    public File(String name) {
        super(name);
    }

    @Override
    public boolean isFile() {
        return true;
    }

    @Override
    public int countNumOfFiles() {
        return 1;
    }
}
